<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<script type="text/javascript" charset="utf-8"
		src="<%=basePath%>ueditor/editor_all.js"></script> 
<script type="text/javascript" charset="utf-8"
		src="<%=basePath%>ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" charset="utf-8"
		src="<%=basePath%>ueditor/editor_config.js"></script>
		<c:if test="${message }">
		  <div style="width:98%; height:50px;">
		            <strong> 添加成功</strong>
		  </div>  
		</c:if>
<form action="<%=basePath %>backend/addlab" method="post" id='labForm'>
			
           <div class="row div-common">
           <div class="span6 input-prepend" >
                 <span class="add-on">实验室类型</span>
                  <select class="span6" id='bnkind' name='labType'>
                  <option value='省重点实验室'>省重点实验室</option>
                  <option value="学科型实验室">学科型实验室</option>
                  </select>
                  <span></span> 
               </div>
          <div class="span6 input-prepend" >
                 <span class="add-on">实验室名称</span>
                 <input  type="text" name="labName" >
            
              </div> 
              <div class="span6 input-prepend" style='margin-left:0px;'>
                 <span class="add-on">实验室位置</span>
                 <input  type="text" name="labPosition" >
              
              </div>
              </div>
			  <div class='div-common'>
			  
		       <script  id="editor" ></script>
		       </div>
	    <!-- <input type="checkbox" value="0" name='index' id='index'  />首页新闻 -->
		<input  type="submit" value="完成" style="margin-left:600px;margin-top: 10px;" class="btn btn-info" onclick="return getContent();"/></div>
		<input id="content1" type="hidden" name="labIntroduce">
		
	</form>
	
	<script type="text/javascript">
	var ue = UE.getEditor('editor');
    function getContent() {
        var str= ue.getContent();
       // alert(str);
        //document.getElementById('content').value=str;
        $("#content1").val(str);
        var str="";
        return true;
    }
  
</script>
